require "test_base"

def random_array( size, max_value )
	(1..size).map{ rand(max_value) }
end

test_tp0_media(1)
test_tp0_media(1,2)
test_tp0_media(1,2,3)
test_tp0_media(3,2,1)
test_tp0_media(100,200,300)

# 1000 valores
test_tp0_media( *(1..1000).map )

# Valores aleatorios
test_tp0_media( *random_array(10, 20) )


# desviacion estandar

test_tp0_std(1)
test_tp0_std(1,1,1,1)
test_tp0_std(1,2,3)
test_tp0_std(3,2,1)
test_tp0_std(100,200,300)

# 1000 valores
test_tp0_std( *(1..1000).map )

# Valores aleatorios
test_tp0_std( *random_array(10, 20) )

test_tp0_mediana(1)
test_tp0_mediana(1,2)
test_tp0_mediana(3,2,1)
test_tp0_mediana(100,200,300)

# 1000 valores
test_tp0_mediana( *(1..1000).map )

# Valores aleatorios
test_tp0_media( *random_array(10, 20) )
